<%= form_for(@right) do |f| %>
  <% if @right.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@right.errors.count, "error") %> prohibited this right from being saved:</h2>

      <ul>
      <% @right.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  <table>
    <th></th>
    <th>Create</th>
    <th>Approve</th>
    <th>Edit</th>
    <tr>
      <th>Self</th>
      <td>
        <div class="field">
          <%= f.check_box :self_create %>
        </div>
      </td>
      <td>
        <div class="field">
          <%= f.check_box :self_approve %>
        </div>
      </td>
      <td>
        <div class="field">
          <%= f.check_box :self_edit %>
        </div>
      </td>
    </tr>
    <tr>
      <th>Other</th>
      <td>
        <div class="field">
          <%= f.check_box :other_create %>
        </div>
      </td>
      <td>
        <div class="field">
          <%= f.check_box :other_approve %>
        </div>
      </td>
      <td>
        <div class="field">
          <%= f.check_box :other_edit %>
        </div>
      </td>
    </tr>
    </table>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
